<?php

class GeneralConfig extends BaseModel {

    static $table_name = 'web_generalconfigs';
    
    function clear_name(){
        return str_replace("_", " ", $this->nombre);
    }
    
    function valor(){
        if(is_numeric($this->valor)):
            return (float)$this->valor;
        endif;
        return $this->valor;
    }

}

?>
